// 切换状态
function changeStata(e) {     
    var Img=document.getElementById('img');  
    $('#myModal').modal('hide');  
    if (Img.getAttribute("src",2) == '../../../images/success.png') {
        Img.setAttribute("src","../../../images/fail.png");
        $('#modal-input').html('确认启用');
    } else {                                   
        Img.setAttribute("src",'../../../images/success.png');
          //此处即为修改modal的标题
          $('#modal-input').html('确认停用');
    }
}